from selenium.webdriver.common.by import By
class RetiredManageLocator():


    # 登录标签
    login_click = (By.XPATH, '//a[text()="我的工作台"]')
    username_loc = (By.XPATH, '//input[@placeholder="请输入用户名"]')
    password_loc = (By.XPATH, '//input[@placeholder="请输入密码"]')
    # 登录按钮
    loginsbt = (By.XPATH, '//button[@onclick="loginVerify(1)"]')
    # 我的工作台
    workbench_loc = (By.LINK_TEXT, '我的工作台')
    # 取消修改密码按钮
    cancel_password_change = (By.XPATH, '//div[@aria-label="修改密码"]/div[1]/button/i')

    # 退休管理菜单
    retirement = (By.XPATH, '//aside[@class="site-sidebar-sub site-sidebar-sub--dark"]/div/ul/li[5]/span')

    # 离职管理菜单
    leave_management = (By.XPATH, '//aside[@class="site-sidebar-sub site-sidebar-sub--dark"]/div/ul/li[4]/span')

    # 退休管理标签定位取值
    retired_management_text = (By.XPATH, '//span[@role="link"]')

    # 添加
    add_retired = (By.XPATH, '//span[text()="添加"]')

    # 姓名输入框
    name = (By.XPATH, '//div[@class="site-content__wrapper"]/main/div/form/div[1]/div/div/div/input')

    # 退休类型标签
    label = (By.XPATH, '//label[text()="退休类型："]')

    # 退休类型下拉框
    retired_type = (By.XPATH, '//input[@placeholder="请选择退休类型"]')

    # 离休
    l1 = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 离职时间下拉框
    leave_time = (By.XPATH, '//input[@placeholder="请选择日期"]')

    # 名称输入框提示信息
    name_tips = (By.XPATH, '//div[contains(@x-placement,"-start")]/p')

    # 名称输入框为空提示
    name_none = (By.XPATH, '//div[@class="el-form-item__error"]')

    # 确定按钮
    sure = (By.XPATH, '//button[@class="el-button el-button--primary el-button--medium"]/span')

    # 取消按钮
    unsure = (By.XPATH, '//button[@class="el-button el-button--default el-button--medium"]/span')

    # 提示 确定按钮
    tips = (By.XPATH, '//div[@aria-label="提示"]/div/div[3]/button[2]/span')

    # 名称列表第一个定位
    list1 = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="亚瑟"]')

    # 离职管理列表第一个姓名标签
    list_name1 = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]/table/tbody/tr/td[2]/div')

    # 备注
    note = (By.XPATH, '//textarea[@class="el-textarea__inner"]')

    # 备注字数标签
    note_tips = (By.XPATH, '//form[@class="el-form retire--foems"]/div[4]/div/span')

    # 上传附件input标签
    accessory = (By.XPATH, '//div[@class="upload-demo"]/div[1]/input')

    # 上传列表第一个
    file1 = (By.XPATH, '//div[@class="upload-demo"]/ul/li/a')

    # 系统提示信息
    system_tips = (By.XPATH, '//div[@role="alert"]/p')

    # 教职工信息管理应用
    teacher_manage = (By.XPATH, '//div[text()="教职工信息管理系统"]')

    # 离职
    departure = (By.XPATH, '//div[@class="el-table__fixed-right"]/div[2]/table/tbody/tr[1]/td[12]/div/button[2]/span')

    # 退休
    retired = (By.XPATH, '//div[@class="el-table__fixed-right"]/div[2]/table/tbody/tr[1]/td[12]/div/button[3]/span')

    # 列表第一个姓名标签
    list1_name = (By.XPATH, '//div[@class="el-card__body"]/div[6]/div[3]/table/tbody/tr[1]/td[3]/div/a')

    # 提示 确定按钮
    tip = (By.XPATH, '//div[@aria-label="提示"]/div/div[3]/button[2]/span')

